"""CARS URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from api.views import views, auth, backend

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^$', views.index),
    url(r'^login/', auth.login),
    url(r'^get_validCode/', auth.get_validCode),
    url(r'^logout/', auth.logout),
    url(r'^change_pwd/', auth.change_pwd),
    url(r'^index/', views.index),
    url(r'^backend/', backend.index),
    url(r'^stu_active/', backend.stu_active),
    url(r'^reg_active1/', backend.reg_active1),
    url(r'^reg_active2/', backend.reg_active2),
    url(r'^exa_active1/', backend.exa_active1),
    url(r'^exa_active2/', backend.exa_active2),

    url(r'^apply/', backend.apply),
    url(r'^success/', backend.success),
    url(r'^fail/', backend.fail),
    url(r'^export/', backend.export_excel),
    url(r'^sign_up/', backend.sign_up),
    url(r'^.*', views.error),
]
